package ooday05_vis;
//枚举类季节复杂版测试类
public class EnumTest {
    public static void main(String[] args) {
        Seasons s = Seasons.AUTUMN;
        System.out.println(Seasons.SPRING.getSeasonName()+":"+Seasons.SPRING.getSeasonDesc());
        System.out.println("=========================");
        Seasons[] seasons = Seasons.values();
        for (int i = 0; i < seasons.length; i++) {
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonName()+":"+seasons[i].getSeasonDesc());

        }
    }
}
